﻿using System.Net.Mail;
using TSharp.Core.Util;
using TSharp.Core.Authentication.Facade;

namespace TSharp.Core.Authentication.Impl
{
    internal class MailService : IMailService
    {
        public bool Send(string Host, int Port, int Timeout, bool EnableSsl, string UserName, string PassWord,
                         MailMessage Message, bool IsSync, SendCompletedEventHandler CompletedCallBack)
        {
            return Mail.SendMail(Host, Port, Timeout, EnableSsl, UserName, PassWord, Message, IsSync, CompletedCallBack);
        }
    }
}